﻿package app.view.events 
{
	import flash.events.Event;
	
	/**
	 * События для "цветной" клавиатуры
	 * @author Dmitryi_Koruagin, icq:585466579, dmitryikoruagin@yandex.ru
	 */
	public class KeyboardEventD extends Event
	{
		public static const ON_KEY_DOWN:String = 'ON_KEY_DOWN';
		public static const ON_INPUT_TEXT:String = 'ON_INPUT_TEXT';
		public static const ON_KEY_BACKSPACE:String = 'ON_KEY_BACKSPACE';
		public static const ON_KEY_ENTER:String = 'ON_KEY_ENTER';
		public static const ON_KEY_LEFT:String = 'ON_KEY_LEFT';
		public static const ON_KEY_RIGHT:String = 'ON_KEY_RIGHT';
		public static const ON_CHANGE_BOARD_LANG:String = 'ON_CHANGE_BOARD_LANG';
		
		
		public static const ON_CLICK_SKY_MESSAGE:String = 'ON_CLICK_SKY_MESSAGE';
		public static const ON_CLOSE_SKY_MESSAGE:String = 'ON_CLOSE_SKY_MESSAGE';
		
		public var data:Object;
		public var str:String;
		public var id:Number;
		
		public function KeyboardEventD(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
		} 
		
		public override function clone():Event 
		{ 
			return new KeyboardEventD(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("KeyboardEventD", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}

}